<?php				
	interface detailIO_class_info
	{				
		function getDetailList($IOCode);
	}
	
	class detailIO_class implements detailIO_class_info
	{
		function detailIO_class()
		{
			@session_start(); 
			require_once('../../lib/'.'BaseDir.inc.htm');
			require_once(EIU_LIB.'DBCommon.class.htm');					
		}
					
		function getDetailList($IOCode)
		{
			$oDB = new DBCommon();
			$conn =  $oDB->stl_openConn();
									
			//$q = "SELECT d.`CATName`,d.`AssName`,d.`AssCode`,d.`Quantifty`,d.`Unit`,d.`IODescription`,s.`DescriptionSta` FROM `detail_io_tbl` as d,`status_tbl` as s WHERE d.`isDeleted`=0 and d.`StatusID`=s.`STAID` and d.`IOCode`='".$IOCode."'";
			$q = "
				SELECT 
					`detail_ID`,`CATCode`,`AssCode`,
					`AssName`,`CATName`,`Quantifty`,
					`StatusID`,`IODescription`,`Unit`,
					`CreateDate`,`LastUpdate`,`Price`,`Amount`
				FROM `detail_io_tbl` 
				WHERE `isDeleted` = 0 AND `IOCode` ='".$IOCode."'
			";
			//echo $q;
			$rs = $oDB->stl_db_select($q, $conn);
			
			$oDB->stl_closeConn($conn);
			
			if($rs)	return $rs;
			else return false;	
		}
		
	}
?>